<?php
namespace app\agent\controller\system;
class Privacy extends \app\agent\controller\Common
{
    public function index(){
        if (request()->isPost()) {
            $data = request()->param();
            $table = new \app\common\model\Config();
            foreach ($data as $key => $value) {
                $row = $table->allowField(true)->save([
                    'value' => $value
                ], ['key' => $key]);
            }
            return self::successResult();
        } else {
            return view();
        }
    }
    public function user(){
        return view();
    }

    public function logoff(){
        return view();
    }


  

  

 
}
